<template>
  <div class="FoldMenu">
    <el-icon :size="22" @click="store.changeFoldMenuState">
      <TurnOff v-if="store.isCollapse" />
      <Open v-else />
    </el-icon>
  </div>
</template>

<script lang="ts">
import { useMainStore } from "@/stores/main"
export default {
  setup() {
    const store = useMainStore()
    return {
      store
    }
  }
}
</script>

<style lang="scss" scoped>
.FoldMenu {
  display: flex;
  .el-icon {
    cursor: pointer;
  }
}
</style>